package com.yww.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 用户实体类
 * 杨雯雯
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

@ApiModel(value="Users对象", description="")
public class Users {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    @Size(min = 2, max = 11, message = "账号长度必须是2-11个字符")
    private String loginName;
    private String passWord;
    private String isLockOut;    //是否锁定
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String lastLoginTime; //最后登录时间
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;     //创建时间
    private Integer pasWrongNum; //密码错误次数
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lockTime;       //锁定时间
    private String protectEmail;
    private String protectTel;
    private Integer isFp;
    private Integer qdStatic;
    private Date qdTime;
    private Date qtTime;
    private String imgUrl;
    private Integer isDelete;
    @TableField(exist = false)
    private Integer weight;
    //private String beishu;




}
